package com.vae.auth.controller;

import com.vae.auth.domain.XcUser;
import com.vae.auth.mapper.XcUserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class LoginController {

    @Autowired
    XcUserMapper userMapper;
    @RequestMapping("/user/{id}")
    public XcUser getuser(@PathVariable("id") String id) {
        return userMapper.selectById(id);
    }

}
